package com.uyayo.framework.captcha.model;

import java.awt.image.BufferedImage;
import java.io.Serializable;

/**
 * 验证码类
 * @author hfj
 * @date 2018/10/20
 */
public class Captcha implements Serializable {

    private static final long serialVersionUID = -7574081551128010610L;
    /**
     * 缓冲图像
     */
    private BufferedImage image;

    /**
     * 创建时间
     */
    private long createTime;

    public BufferedImage getImage() {
        return image;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Captcha{");
        sb.append("image=").append(image);
        sb.append(", createTime=").append(createTime);
        sb.append('}');
        return sb.toString();
    }
}
